import pubSub from 'pubsub-js';
<template>
  <div>
    <h3>sonone</h3>
  </div>
</template>

<script>
import pubSub from "pubsub-js";
export default {
  mounted() {
    //   订阅
    pubSub.subscribe("getMoney", (msg, money) => {
      console.log(msg);
      console.log(money);
    });
  },
};
</script>

<style lang="scss" scoped>
</style>